<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <h1>品牌管理</h1>
      </div>
      <el-row :gutter="20">
        <el-col :span="20">
          <el-input type="text" placeholder="请输入品牌列表" />
        </el-col>
        <el-col :span="4">
          <el-button type="primary">立即提交</el-button>
        </el-col>
      </el-row>
      <el-divider>分割线</el-divider>
      <el-table :data="tableData" height="450" border style="width: 100%">
        <el-table-column prop="id" label="ID" width="180"></el-table-column>
        <el-table-column prop="name" label="品牌名称" width="180"></el-table-column>
        <el-table-column prop="ctime" label="添加时间"></el-table-column>
        <el-table-column label="操作">
          <el-button type="success" round size="small" icon="el-icon-edit">编辑</el-button>
          <el-button @click="del" type="danger" round size="small" icon="el-icon-delete">删除</el-button>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  created(){
    console.log(this.$store.state);
  },
  data() {
    return {
      brandName:'',
      tableData: [
        {
          id: "2016-05-03",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-02",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-04",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-01",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-08",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-06",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        },
        {
          id: "2016-05-07",
          name: "王小虎",
          ctime: "上海市普陀区金沙江路 1518 弄"
        }
      ]
    };
  },
  methods:{
    del(){
      this.$success('确定删除')
    },
    add(){
    
    }
  }
};
</script>

<style>
</style>